//package com.dotflat.satistics.vo.general;
//
//import lombok.Data;
//
//import java.util.Map;
//
///**
// * *******************************
// * Created by Tim.
// * form com.matt
// * on 2018/7/20
// * *******************************
// */
//@Data
//public class IncomeConstituteVo {
//    private String timeName;
//    private double nurseryAmount = 0.0;
//    private double earlyAmount = 0.0;
//    private double otherAmount = 0.0;
//
//    public static IncomeConstituteVo of(Map map) {
//        IncomeConstituteVo vo = new IncomeConstituteVo();
//        vo.setTimeName(map.get(TIME_NAME).toString());
//        vo.setNurseryAmount(map.get("nurseryAmount") == null ? 0.0 : Double.valueOf(map.get("nurseryAmount").toString()));
//        vo.setEarlyAmount(map.get("earlyAmount") == null ? 0.0 : Double.valueOf(map.get("earlyAmount").toString()));
//        vo.setOtherAmount(map.get("otherAmount") == null ? 0.0 : Double.valueOf(map.get("otherAmount").toString()));
//        return vo;
//    }
//}
